package com.huanhong.hik.util.callback;

import com.huanhong.hik.bean.AlarmDataHandler;
import com.huanhong.hik.util.HCNetSDK;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import lombok.NoArgsConstructor;

@NoArgsConstructor
public class FMSGCallBackV31 implements HCNetSDK.FMSGCallBack_V31 {

    //报警信息回调函数

    @Override
    public boolean invoke(NativeLong lCommand, HCNetSDK.NET_DVR_ALARMER pAlarmer, Pointer pAlarmInfo, int dwBufLen, Pointer pUser) {
        AlarmDataHandler.alarmDataHandle(lCommand, pAlarmer, pAlarmInfo, dwBufLen, pUser,"setupAlarmChan");
        return true;
    }

}
